import request from '@/utils/request'

export function getList(query,states) {
  let url = '/api/shipping-order/category-product-items?1=1'
  states.forEach(state => {
    url += '&state[]=' + state
  })
  return request({
    url: url,
    method: 'get',
    params: query
  })
}

export function getPickingOrders(query) {
  let url = '/api/picking-orders'
  return request({
    url: url,
    method: 'get',
    params: query
  })
}

export function getPickingOrder(id) {
  let url = '/api/picking-orders/' + id
  return request({
    url: url,
    method: 'get'
  })
}

